package com.fire.market.gateway.api.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "用户注册参数")
public class UserRegisterParam {
    @ApiModelProperty(value = "姓名",required=true)
    @NotNull(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "性别",required=true)
    @NotNull(message = "性别不能为空")
    private Integer gender;

    @ApiModelProperty(value = "年龄",required=true)
    @NotNull(message = "年龄不能为空")
    private Integer age;

    @ApiModelProperty(value = "手机号",required=true)
    @NotNull(message = "手机号不能为空")
    private String telphone;

    @ApiModelProperty(value = "验证码",required=true)
    @NotNull(message = "验证码不能为空")
    private String optCode;

    @ApiModelProperty(value = "密码",required=true)
    @NotNull(message = "密码不能为空")
    private String password;
}
